# include "Fac.h"
int main()
{
  double ret=0;
  int k=0;
  printf("k     S(k)\n");
  for(k=0;k<12;k++)
  {
     ret +=(pow(-1,k)*(k+2)*pow(0.3675,k+2))/(Fac(k)+Fac(k+1)+Fac(k+2));
     printf("%d %.10f\n",k,ret);
  }
  return 0;
}
